home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / join < prev    next >
Encoding:
Text File  |  2001-03-21  |  784 b   |  28 lines

  1. Synopsis:
  2.    on [<modes>]join [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client joins a channel, or whenever
  6.    it observes another client joining a common channel.
  7.  
  8. Parameters:
  9.    $0    nickname of person joining channel
  10.    $1    channel joined
  11.    $2    address of person joining channel (same as $userhost())
  12.    $3    person joining's channel status (on avalon 2.9 servers),
  13.          could be either (+o) or (+v)
  14.  
  15. Examples:
  16.    To distinguish between the client and other users joining the channel:
  17.       on ^join "*" {
  18.          if ( [$0] == N ) {
  19.             echo *** You have joined channel $1
  20.          } {
  21.             echo *** $0 \($2\) has joined channel $1
  22.          }
  23.       }
  24.  
  25. See Also:
  26.    join(1); userhost(6)
  27.  
  28.